package cn.iocoder.yudao.module.book.controller.app.category.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.book.controller.app.booksShell.vo.AppCollectionsRespVO;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "App - 自定义 Response VO")
@Data
@ExcelIgnoreUnannotated
public class AppzdyReqVO {
    @Schema(description = "分类id", requiredMode = Schema.RequiredMode.REQUIRED, example = "20391")
    @ExcelProperty("分类id")
    private Integer categoryId;

    @Schema(description = "绘本集")
    @ExcelProperty("绘本集")
    private String collectionList;

    @Schema(description = "绘本集封面")
    @ExcelProperty("绘本集封面")
    private String image;

    @Schema(description = "绘本集id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27291")
    @ExcelProperty("绘本集id")
    private Integer collectionId;

    @Schema(description = "一级分类id", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("一级分类id")
    private Integer classifyId;

    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("标题")
    private String Picturetitle;

    @Schema(description = "分类标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("分类标题")
    private String Categorytitle;

    @Schema(description = "是否置顶", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否置顶")
    private Boolean PictureisTop;

    @Schema(description = "是否置顶", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否置顶")
    private Boolean CategoryisTop;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;


    @Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("描述")
    private String description;

    @Schema(description = "创作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("创作者")
    private String Categorycreator;

    @Schema(description = "创作者", requiredMode = Schema.RequiredMode.REQUIRED, example = "随便")
    @ExcelProperty("创作者")
    private String Picturecreator;


    @Schema(description = "是否为英文", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "是否为英文", converter = DictConvert.class)
    @DictFormat("infra_boolean_string") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer isEnglish;

    @Schema(description = "二级分类集合")
    @ExcelProperty("二级分类集合")
    private List<AppCategoryRespVO> categoryList;

    @Schema(description = "三级分类集合")
    @ExcelProperty("三级分类集合")
    private List<AppCollectionsRespVO> collectionsList;

}
